package com.huya.service.impl;

import com.huya.mapper.TestQuestionMapper;
import com.huya.pojo.entity.TestQuestion;
import com.huya.service.TestQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestQuestionServiceImpl implements TestQuestionService {
    @Autowired
    private TestQuestionMapper testQuestionMapper;

    /**
     * 根据测试id获取测试题目列表
     * @param testId
     * @return
     */
    public List<TestQuestion> getQuestionByTestId(Long testId) {
        return testQuestionMapper.getQuestionByTestId(testId);
    }
}
